package com.itheima.objectstream;

import com.itheima.domain.Student;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        Student student = new Student("坤坤", 26);


        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("day13\\student.txt"));

        oos.writeObject(student);
        oos.close();

    }




}
